package com.flycent.fanbao.ui;

import android.view.View;

import com.flycent.fanbao.R;
import com.flycent.fanbao.ui.view.SimpleTitleBar;

/**
 * 带有返回键的Avtivity
 * @author fbl
 */
public class BackableTitleBarActivity extends SimpleTitleBarActivity{
	
	@Override
	protected void onTitleBarCreated(SimpleTitleBar titleBar) {
		titleBar.setLeftButton(R.drawable.ic_titlebar_back)  //back_ico_one
				.setOnLeftButtonClickListener(new View.OnClickListener() {
					@Override
					public void onClick(View v) {
						onBackPressed();
					}
				});
	}

}
